Java various algorithms.doc