Port of the C version of DeltaBlue to Objective-C