Some Algorithms I implemented