src: improve source code
src: remove redundant code
src: added instance method 'isDiagonal()'
test: added instance method 'isDiagonal()' testings
lint: added some files for linting pass
readme: added instance method 'isDiagonal()' api