Add function sparseAutoEncoderLayer() to Net.