Removed exits from numeric.cpp and use array indices instead of push_back.