matrix not square test case

added code for matrix not square (throws exception) and added
verification in the unit test to verify that the exception was thrown
codility's genome query question

my version of the solution, with copious comments