Basic sorting algorithmes implemented in python