Sample Algorithms coded by me