doc: add some red-black tree documentation

closes #2059
Merge remote-tracking branch 'upstream/master'
Add SMP-aware assembly code in _CPU_Context_switch function