new dist() and pco() methods, dispatching on "matrix" class.  important not to do this recklessly.