Build script
Updated euclid algorith - less memory usage, and performance improvment