Algorithm development discussion | Computer Science homework help