Stackpointer bug correction.

fixed bug of stack pointer initialisation, also tested all task
management routines with simple, average and worse cases. Kernel
working well.