division algorithm thought