A quantitative approach to the analysis of memory requirements for autonomous agent behaviours using evolutionary computation