If the witness is not testifying as an expert, his testimony in the form of opinions or inferences shall be limited to those opinions or inferences which are rationally based on the perception of the witness and helpful to a clear understanding of his testimony or to the determination of a fact in issue.