Updated gitignore.
Added missing resources.
Fixed ant build script to copy resources and natives.
Updated ant build config to use prebuild resources (LayerUtil is not working properly..).
Switched cost function from double to long. This should prevent invalid paths due to rounding errors.
Different approach for path backtracking. Should be more reliable.
Longs for weights is an overkill. Changed to ints. Also slight refactoring.