Supervised Learning of Large Perceptual Organization: Graph Spectral Partitioning and Learning Automata