CTCI 17.11 generate rand7() using rand5()