added a set of classes from berkley's data structures via Adam's DL4J codebase