Orbital similarity functions – application to asteroid pairs