Work. With main diagonal.
Bigger max number of elements && Fix exception with -1.
Merge pull request #4 from resd/master

Yo-Yo