Move slope/aspect calculation to c++.

Need to bugfix aspect - calculation is currently incorrect.