Merck announces plans to trim workforce