add waitgrouptest
add asm
implements Thresh function with SSE2