Adaptive MAC Protocols Using Memory for Networks with Critical Traffic