def normalize(X, lb, ub):
    """ Normalize data between 0 and 1
    # Arguments:
        X: Input data (scalar/vector/matrix)
        lb: Lower boundry (scalar/vector)
        ub: Upper boundry (scalar/vector)
    # Return:
        X normalized (scalar/vector/matrix)
    """

    return (X - lb) / (ub - lb)