GM reorganizes, trims r&d unit