Phase-Tunable Thermal Logic: Computation with Heat