add malloc/free
implement gengt()
add out of memory check
fix error
add genchk() - common method for predicates test
error fix
error fix
minor changes
add .todo
Merge pull request #3 from ammaaim/malloc

Malloc