Rewriting project in object-oriented C. Make sure to write swap interval function.