implemented basic shm pool in pure java