Modified the code for extending the alignments forward and backward in the compress function, added code for updating startOfChunk so that it corresponds to when a new chunk is being processed in the C++ code