Implementation Of various algorithms and other fun stuff