Wrote a recursive step searching function, currently untested.  Units
need fixing in order to test it.
Recursive method seems to work but the numbers need fiddling to get the
best results out.  Also added functions for regression into the
functions module.
fixed recursive function.  May need fine tuning a little.
Merge pull request #3 from LunarLifeblood/RecursiveMethod

Recursive method