Added IDEA project and Main.java.

Project developed using IntelliJ IDEA Community Edition 13.1.4.