Development of algebraic techniques for the atomic open-shell MBPT(3)