Std algorithms refresher