fastthresh.c added