partial_project function

Partially project a new sample onto subspace