WIP - Heuristic 5

This implements the fifth heuristic of the Maple Paper. There are two sub-steps. I think I have completed the first substep.