Fixed bug in the kernel for setting matrix entry with reallocation, passes test now
Added test for setting matrix entries requiring reallocation