Weighted and unweighted subspace fitting without eigendecomposition