clean up learnInverse tests
refactor learnInverse to leverage FunctionUtils
remove unneeded pseudocode
Fix monomial generating method
clean up learnInverse, test on smaller input size