Pascal triangle in scala