Generates bedGraph file of given window size using BAM file