Trading CJ for Whiteside is basically impossible unless you involve a third team. That's unless you wait until this summer.
Could maybe do Cj to Miami, Whiteside to Portland, and Leonard/Harkless to Philly for a pick. That might make the numbers work. I can't check it because of ESPN's stupid trade restrictions.