cf: move code into math-scala

Leave the test cases under sparkbindings for now

Signed-off-by: Anand Avati <avati@redhat.com>