Added a function  to select subsequences capping the n- and c- terminal residues. It is not working yet