Initial code transfer

code transfered from:
http://pagesperso.lina.univ-nantes.fr/~granvilliers-l/realpaver/