Added radial histogram function for shape detection.