Fix SEGF bug
 * add make check to check with valgrind
WIP
parallel