Machine learning with ants in Java