Factoring Perfect Squares and Difference of Squares