Created a queue data structure from scratch.