A java implementation of the expectation maximization algorithm