Machine Learning Approach for Spectrum Sharing in the Next Generation Cognitive Mesh Network