Ruby difference of squares