Lower and upper bounds for cohen-macaulay dimension