Fixed algorithm training and testing. Now produces same output as Matlab code.
Merge pull request #1 from mholden8/master

Merging: Fixed Workflow Segmentation Algorithm