Euqlid algorithm

It's for new class. Delete this file after copy, please.