make operator precedence a template parameter for EditDistance, BandedEditDistance and MetaEditDistance classes