Update demo2d script
end merge
Fix bug: some optimisers return theta as a column vector