more modern use of the tic/toc commands for timing
Removed C++ style comments in HMMcore to make mex compiler run