added result matrix dimensions to argument list to find_finger