found novel way to write algorithm; fixed benchmark call