Maximum product rope cutting problem