49 test cases

49 test cases accounted for.
All test cases accounted for

All test cases seem to work, all functions have been implemented. Next
step is optimization and general cleanup (removal of debug code, etc)