finished array and matrix methods for dfr