Spining Matrix Algo