Array: Update to Count No of paths in a matrix.