fn parse_machine(line: &str) -> (usize, Vec<usize>, Vec<i32>)
Convert light patterns and buttons to bitmasks to speed up part one.