Preparing the ND4J dataset