Given a numpy ndarray A, return its rank array.
Input : [[ 9 4 15 0 18] [16 19 8 10 1]]
Return value: [[4 2