from an excellent post: https://www.r-bloggers.com/2013/05/pairwise-distances-in-r/ enhanced the speed this function is called by 'compute.kld' to quickly compute the distance between genes to grid points
vectorized_pdist(A, B)returns pairwise-distances
matrix
matrix