An algorithm for the solution of Bordered ABD linear systems arising from Boundary Value Problems