adding timer decorator on Backtracking and Norvig algorithms