more efficient scanning of coordinate sorted and indexed bamfile.