added algorithms implemented with Objective-C