Fix build failure

rxjava-0.18.1 removes all math related methods. Using rxjava-math instead.
Fix test failure

New rx-java version thrown NoSuchElementException from last() operator when there is no element.
Fixing groovy examples build failure
Merge pull request #107 from NiteshKant/master

Fix build failure