moved mergeSubSeq into SubSeq module