A New Test Algorithm for High - Density Memories