Adding some algorthim stuff; May be handy for Euler projects