Add few new functions to test simulated annealing

- Add separate instance of random to for cost grid creation