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