shouldn't it be min(paddedReadLength, paddedHaplotypeLength) ?