Learning Spaces by Principal Piezas