Add factorization in Scala
Add extended euclidean algorithm in Scala