Simple multitasking kernel and OS for arduino