Update scala version, remove swing interface
Some refactoring: fact, isPalindrome