worked on sorting array of bin_nodes