An Algorithm for Explicit Form of Fundamental Units of Certain Real Quadratic Fields and Period Eight