Implementation of Some Common Algorithm