Two ways to access reference bases

ReferenceMap (copied from Foghorn) copies the whole reference into memory and stores it in a map.

ReferenceIterator copies one chromosome into memory at a time, which must be accessed in order.
Recommend that you add a test in which the contigs don't all have the same sequence.