M theory, cosmological constant, and anthropic principle