Added implementation of two basic approaches. Added matrix grid.