Reimplement division without java method overloading