Demo with expectation-maximization to find binary values