implemented an automatic table optimiser
Merge branch 'master' of https://github.com/wlorin/crime