Java implementation of common data structures and variants