a simple heap for java