added specs for map and reduce in commonFriends to better explain what both functions are doing