adding cdist() to package
some improvements to cdist()