Testing various algorithm using the scala language