Graphing calculator in Objective-C