Implemented functionQueue as a wrapping adapter for queue

Addresses issue #35. functionQueue is implemented trivially in 4 lines; the rest of the pull request is a clone and adaptation of both the README and tests for queue.