wrote code to test random problems and all heuristics