Modified BoxCalculator.getNumberOfDimensions to use .first() instead of .take(1)(0).  This resolves an issue we were having when trying to train a DBSCAN model within a Java application.
Merge pull request #2 from mark-gitry/master

Modified BoxCalculator.getNumberOfDimensions to use .first()