remove reverse iterator members
rewrite basic_matrix as a 2d matrix