Magic Algorithm
http://aggregate.org/MAGIC/