Spectrum Allocation Algorithms for Cognitive Radio Mesh Networks