Factor the difference of perfect squares