C, C++ data structure course design elevator simulation