Create ptw_frame type to store data

Changed from using arbitrary float ** types to using the ptw_frame type which
includes all of that.  May need to check speed in the future, because this
involves derefencing another pointer at every operation.