Numerical Simulations of Close and Contact Binary Systems Having Bipolytropic Equation of State