Optimize denoisiy algorithm and Implement practice script