Added support for memoization to countNucleotides() for BamDataFile.