Added Seq.toMap function