Wrote dynamic programming heuristic, O(n²v_max) alg