checked in latest version of cxxnet and refactored some strat sampling code