Adding Main method and Apache Commons Math Library