update gitignore
add java version algorithm