add algorithm sample 7 but code need to be reconstructed(about memory)
add algorithm sample 7 but code need to be reconstructed(about memory)