first pass at edit-distance-for-keysize
cleanup