added a function that calculates the number of gates. Needed for calculating the dimensions of some arrays.
added JNI interface to C method detNumberOfGates()
added unit tests for native detNumberOfGates() method
new jar and libraries