Rack shape and energy efficient operations in automated storage and retrieval systems