Homework #9
Implementation of Map on Queue