Blocked pthreaded - FindMaxGap and ComputeDistance from extractshapelet
Fixed computeGap parameter issue - send param for each thread
maxGap and dt are added to threadArg as a workaround
lock added to threadArg to accommodate findMaxGap