Jul 27 Update
TODO: SortedMap needs to be sorted by values, other than that, the other two test cases pass.