implemented correct algo.s
Merge https://github.com/mhems/MSA