Implementation of standard algorithms