Works

Completed testing. It sometimes hangs on last testing. Further testing
is needed to locate problem with the algorithm.