getMatchLen

fun getMatchLen(index: Int, distance: Int, limit: Int): Int