Revert "Add filtering inside 222 and pyraminx solvers"

This reverts commit de82cac3896480c53fd1ceb4c7dec7116a5e5706.
Reapplying Clement's changes to turn costs.
Removed solvableIn() method, replaced with solveIn() method. Also fixed
some hashing bugs related to multidimensional arrays and added a test
for it.
Sped up solveIn() method for 2x2.