Mark the tick against the correct answer in the following: If \omega is a complex root of unity then \left|\begin{array}{ccc}1 & \omega & \omega^{2} \\ \omega & \omega^{2} & 1 \\ \omega^{2} & 1 & \omega\end{array}\right|=?
A. 1
B. -1
C. 0
D. none of these