Changed the task of main function to compute depth of every instruction and datum.