Factorial calculator in Objective-C