Update cortex-m3 NVIC

Add binary heap routine to manage NVIC priority
Update NVIC interrupt and exception response sequence