Performing Operations On Matrix