Basic implementation of Algorithms using Data Structures