Finished importClass() and importFromClass() NAMESPACE directives

Makes it easier to include JVM classes and methods in R packages
Added some optimized code for dist() to stats package