Change SparceTable representation from pair<unsigned int,unsigned int> to unsigned short by unsigned short array to avoid creating so many pairs