rewrote program as c code. Currently code compiles but outputs same results and skips certain runtimes.