fn limit_and_offset<T>(
    vec: Vec<T>,
    limit: Option<u64>,
    offset: Option<u64>
) -> Vec<T>