B-17-18 Joint Resource Allocation and Interference Avoidance for Multi-cell Cognitive Radio Networks with Primary Assistance