Biologically inspired optimization of antenna arrays