standart algorithms on Java