Adds function flatMapValues.
Adds tests for flatMap and flatMapValues.
Merge pull request #102 from hlin09/hlin09

Adds function flatMapValues.