C# DEM slope calculation form