Fixed bug with deleting the last row and column. Issue #58.