add insert sort and depth first search