getYArrayInMatrix, getXArrayInMatrix, setValToCoordinates added