Finish implementation of EM algorithm prototype

Completed EM algorithm.  Refer to TODOs for remaining issues.  Currently
capable of segmenting images, albeit very slowly.  Massive optimization
required, yet.