now prints hi, lo. Only iterates a max of 2^n times.