Some useful alogrithm implementations and some nice to know questions/code implementations