fixed bug in mergeSubSeq and added some tests for it