Stripped trailing spaces; Implemented FromIterator for TreeMap and PriorityQueue