method of calculation of rank correlation