Krull dimension of O_X and its relationship to the scheme dimension