Matrix Product State Representations Of Functions