Major performance improvement to 57, elimination of fraction simplification and memoization