adding a function to compare h to optimum
Merge branch 'master' of https://github.com/ilantc/Magneton