Java thread implementation of ant-colony optimization