A generic problem solving library based on ant colony optimization