The working version of the random cost code. Still need feasibility check.
1. Get the correct the cost before any argmax or cut adjustment.
2. Add some test procedures in cell.c, remember to remove them!