Implemented basic Tabu search by memoizing states