Added simple gitignore.
Added stack impl. using an array in Java.