Addition of OpenMP for inner loop and removal of hash table to save on RAM.