Implement a basic recursive_delete_if that passes the failing test.