Modified the thread insert and yield functions.
* Found bug in list_rotate_one which results in segfault - fix needed