A collection of algorithms written in java