Fixing a bug in the remove_duplicates routine.

The algorithm only worked for doublets, but not triplets and upward.
Removing debugging output.
Fixing the case where a mosquito inherits from a pillbug.