An efficient strategy for adaptive partition of N-dimensional intervals in the framework of diagonal algorithms