Direct algorithm for multipolar sources reconstruction