Added next part of euclidian decoder