Apply multithreading

add multithreading
add namespace to Graph