def normalize_data(x):
    """Normalize data to values between 0-1

    Args:
    x(NxN float matrix): data to be normalized

    Returns:
    x_norm((NxN float matrix): normalized data

    """

    return (x-x.min())/(x.max()-x.min())