Machine learning for iOS8 with Swift