SMMF: Square-Matricized Momentum Factorization for Memory-Efficient Optimization