simplify code for minimum_window_substring
by abusing the double list node.