Orientation Selectivity: An Approach from Theoretical Computer Science