Fixed some bugs, added gaussian smoothing for subsampled images - flow
computation for one level (one iteration) is complete. Requires testing.