Hewlett-Packard has agreed to buy Compaq Computer for some $25 bln in stock, as the two computer giants move to join forces against IBM and other fierce rivals in a shrinking market for computers. The deal would create a company with revenues of $87.4 bln, catapulting it ahead of Dell Computer, as the world