Optimum Acquisition of PN Sequences with Adaptive Threshold