Gravitational-Wave Memory From Black Hole And Neutron Star Mergers