A Fair MAC protocol for Resource Sharing in Ad-Hoc Cognitive Networks