Text this: An efficient algorithm for the projection of a point on the intersection of two hyperplanes and a box in Rn