Removed nullPointerException. Minor changes to LabeledDataset2.java