Cognitive Model of Architectural Spaces