Reliability Study Of Flash Memory And Its Applications