adding algoritm for optimizing office location