Bandit algorithm implemented in Objective-C for split testing.