Modeling velocity autocorrelation functions of confined fluids: A memory function approach