add license
refactoring

* rename isSameSize()
* rename matrix height and width
* change matrix constructor param order