Removed operation cash persistancy.
Added ghc flag needed by the knight; reused foldr.