Resource Allocation for a Wireless Coexistence Management System Based on Reinforcement Learning