Multilevel surround inhibition. A biologically inspired contour detector