memory test using greatest
Better memory test
static analysis