Implemented thread_set_priority and insert by sorted into sleep_list

Tests: Alarm-Priority and Priority-Fifo are now PASS status