change post datastructure from indexed map to jdk treemap + raw array