You may want to consider a sorted vector or a map as stated above.