few more python algorithms, basica sorting