implemented a queue in the prototypal style with a linked list as a storage