Added overflow and underflow test functions. Added perf testing functions.