Implemented 3.7 "Animal shelter" in TwoFoldQueue. Can store two kinds of objects in the queue and dequeueALL() or
dequeueType().
QUESTION: used lastIndexOf(new Animal("CAT")) to find which to dequeue, is this a good way?