working on dtcwt implementation