Ancient brain point to the origin of heads in early animals