Implemented RDO function to calculate bits used for coefficient coding
Use RDO to check for transform skip mode
Use RDO in final_cost