Dissecting protein loops with a statistical scalpel suggests a functional implication of some structural motifs