Computational methods in lattice-subspaces of C [a, b] with applications in portfolio insurance