Algorithm Implementation of interesting and trivial problems