added a zero check to avoid divide by zero errors when computing GLRL features.  this error occurs when a particular direction, theta, has no run lengths resulting in the variable 'sum_P[theta]' being zero.