simple impls for common algorithm or data structures