week 8, recursive functions and binary search