I've managed to adapt gready solution with two additional phases of rebalance (exchange elements, if they improve hands weights difference).
Need some tests, which can break my solution.
Created at: 2012/12/27 08:39; Updated at: 2013/09/30 13:47