corrected a bug in get_ptset_centroids related to row,col ordering for output type array