Update algorithms.py

New name for weight heuristic.