updated of algorithms