Deep Neural Networks with Symplectic Preservation Properties