Added function headers for squaring each element of matrix and function to find standard deviation of row or column.
Added bound checks for row or column access and implemented standard deviation functions.