Some Algorithms used in my programming