Added assertion/verification of linear speedup with threading