Just practicing algorithms using Scala language