Added initial code (mainly modular curve related code)