added swapFirstWithLast() method, for queues. Also it has been tested