MadscanL function

Calculate MAD basic indices (version for large files)