fix bugs in BAMReader, replaced corresponding class in sam-jdk