The Knicks. Wallace and Humphries for Amare.
C's get out of Wallace's contract a year earlier, but also take on extra money next year. But they get a very interesting pick and roll partner to play with Rondo, and perhaps keep the fans excited (and also someone they can pretty easily "shut down" if they decide to tank). Its kind of just shuffling the deck, but it also gives them a lot of potential cap space for 2015.
And for the Knicks, they are basically in salary cap hell anyways for another couple years. But this gives them a better chance to win now, while they have Melo and Chandler. Humphries gives them decent depth, or gives them an asset to swing at the trade deadline, and Wallace is actually a GREAT fit next to Melo, because he can defend the 3 or the 4, and doesn't need the ball on offense.