pairsToMap - make Map from collection of pairs