Paths and Matchings in an Automated Warehouse