Google buys IBM patents to beef up portfolio