a more efficient implementation of cdp with t-tests