WORKING PAPER: Optimal threshold for the estimator of integrated variance