initializing bam iterator