Changed compilation to size optimization by default
Grid improvements!

Cleaned up Grid.h and improved grid demo.