added multithreaded routines and test-case for it
added multithreaded routines and test-case for it