smarter size algorithm
style
Merge pull request #3 from ghirardinicola/master

Master