Extraction of Bases from Spanning Sets