THE HASSE-WITT MATRIX OF AN ALGEBRAIC CURVE