Unsupervised learning of multiple motifs in biopolymers using expectation maximization