Implemented generic type for Queues, added Sum able to use any type of queue