set rdist.txt file into a matrix