9/29/2014  with shared memory

works with shared memory. adding multi-thread process now