last_index_of() recursive impl