CN- is a strong nucleophile and weak base at the same time, and since heat is added you can easily assume the reaction will go as an elimination reaction. Since the halide is tertiary, the reaction will be either E1 or S1, and if you remember E1 or S1 reaction favors weak base and weak nucleophile respectively. In order for E2 to occur, the base needs to be big (steric hinderance) and strong. Hope this helps =)