Implementation of well known algorithms, mainly graphs and sorting,  in python