Cpp bad_alloc: to show how bad_alloc works in C++