Heisenberg-Limited Quantum Metrology Using Collective Dephasing