Renamed remove to removeTask

New remove method that removes the given node from the queue.