added get_reverse to _basis.c