Min cache, not debugged, going to add dynamic alg selection in main