implemented hashing and sorting part of algorithm
cleaned up the algorithm
touch