small optimization

you can use 2 dots in for in loop to except dimension value
Merge pull request #5 from buddax2/master

small optimization