added theta update
more work towards MT-MKL implementation in C++