Very slow frame rate in C++ N-body simulation using Barnes-Hutt and RK4