Reemplemented Queue

now uses QueueNode that inherits from Node, data and distance for values