Implementations(mostly Java) of simple algorithms