Fixed major bug in data sorting.
Fixed expected weight and MLE on mixture seems to be working.