initializer for cached squares