McDonald's purchases machine-learning company to help bolster sales via adaptive menus and more