A fast method for calculating the perceptron with maximal stability | Synapse