Two years ago, when both the San Mateo boys’ and girls’ varsity basketball teams finished in the cellar of their respective divisions, the mission was simple — rebuild.