Implementations of standard algorithms