Simple Dynamic allocation of Major and Minor number