FOIL method for binomial multiplication