New Applications Of Random Matrices Theory In Spin Glass And Machine Learning