normalize_data function

Normalize intensity data