A cake for evolutionary algorithm in scala