Added algorithm. Continuing unit tests
testNextHash added