Diagrammatic reasoning test: following a flowchart forwards and backwards