adding answers to recursion exercises - sedgewick algo 4e section 1.1.18