Implementation of charakteristics method for water hammer problem