dropped unused import
relaxed input type
made fitness and population implicit