tests for iterative
implemented iterative binary search
renamed functions