Solved Dominator in C