Home Depot's $5 billion purchase of an unsexy building products distributor is a prime example of smart M&A | Fortune