Add third degree root calculation