A multi-threaded quantitative finance library