Implementation of well known algorithms