add low m version of lcs distance
rename and rework