Added function get_tq

Tq is extracted from batman's Debug directory and fetched to the cost
calculation function.