Change participant matrix to hashmap.