Add a map() method for vectors.

Following up on #93, I implemented the `map()` method. Is this an appropriate implementation?