Constellation Software's (TSX:CSU) capital-allocation strategy is similar to that of Berkshire Hathaway (NYSE:BRK.B).