use gnu99 standard
added double vector implementation called VSArray
added gradient descent algorithm with test
renamed gradient function
gradient algorithm for finding global motion. Gradient tested, but
bad local fields are not yet discarded....
VSArray added
White-spaces
gradient algorithm for motion calculation works now.
allow for 2 rounds of bad-field discarding (to ignore moving objects)
changed adaptive optimal zoom speed
motion-detection mismatch is also used to disable bad fields
performance of gradient algorithm seems okay: ~1s for 5000 frames