add expectation maximization example but it is not thoroughly tested and may be buggy