Modified least squares algorithm incorporating exponential resetting and forgetting | Synapse