learning at the edge of chaos