Checks if object is in the queue.
object
Returns true if the element is found.
bool contains(E object);