A neural network for signal decomposition problems