Implement Elastic Nets.