Working memory, selective visual attention and hierarchical perception