Finite iterative algorithms for the generalized reflexive and anti-reflexive solutions of the linear matrix equation $AXB=C$