work on cngx (WIP)

 - add more tests
 - implement cngx/memory API
 - implement cngx/memory implementation
 - (compiles:OK, test:fail, run:fail)