merge of Cockroaches.java and QueueCostFunction.java
not exactly what you want
?
??
???