Distances defined by neighborhood sequences