Add palindrome.scala

Signed-off-by: Spencer Deinum <spencerdeinum@gmail.com>