Some unsupervised learning modules using Torch