Solved the ninety-second problem
Made tradeoff between a bit of time and a lot of memory