Text this: Resource Allocation for Two-Way Relay Network Based on Cognitive Radio