American Retailer Kroger uses infrared sensors to track customers in their stores. Then an algorithm decides how many checkout lines need to be open to reduce wait times.