rearrange-books_c rec