fitness function kanpsack