A MAC Protocol for Cognitive Radio Wireless Ad Hoc Networks