iterative binary sort
binary sum, tests