Added types to make the signatures more readable.
Added findLowestValueKey function for EdgeMap's.