working on spectral bugs
fixed bug in findClosestCosntrained in spectrla_impl