Cuckoo search algorithm implementation