A Biologically Plausible Architecture For Shape Recognition