Java library for efficiently working with heap and off-heap memory