http://www.cs.wisc.edu/~boris/maha/x...e_Madeira.html