Face recognition and detection using Swift and CoreData