Added the "fork" function which, as the name suggests, creates a new matrix from the old one
Added return which was missing