Slope Calculation Function

Added Function to calculate slope as well as a test script