ECC implementation in Java