add base for simulated annealing
small fix in random_search