Simple implementation of a read-only vector-based map C++