Added nearest neighbors to lookupTable.py and refactored pwm, simplePred and lookup