Quasi-orthonormal Encoding for Machine Learning Applications