FindDegree added

Added in the FindDegree code written by tim