Create glsd

glsd from serena ng matlab code