Tiny (as in minimal) implementation of some core STL functionality