Update algorithm.Java to heuristic.Java

Can be used to keep all the heuristics