bank transaction simulation using C. Sort transactions based on timestamp