Update rank-index.hpp

Change rank value type