Implementations of some cool algos and DS