first working (using test data) implementation of the bam slicer