added a _vectorMap() helper function
Merge pull request #60 from yetanotherhacker/vectorize

added a _vectorMap() helper function