To be honest. We were stuck.
We couldn't do better algorithm with the ideas which we had.
We met with @tmvst and @ctw and we were ideate different version of algorithm. We came up with few pretty interesting ideas which were not doable.
BUT - we found some, which we wanted to try.
It was huge milestone, because there we defined, that algorithm should generate banners into 3 groups.