Miscellaneous algorithms, implemented during my studies