Implement a stack over/under-flow detector
Move stack overflow detector to libray