A Model Universe with Variable Space Dimension: Its Dynamics and Wave Function