A novel algorithm for solving quasi penta-diagonal linear systems