Figured out why the e-step had the ahrd coded value of 1. Added some more asserts, and re-wrote the cumsum code to be more numerically stable