add implementation of euclidean algorithm and compile with REENTRANT and pthread as this code is ment to be used within threads ... also there is no other thread awareness in it