drivers: ubi: improve algorithm.

Algorithm:
 * uses a linked list for LEBs, and
 * store PEB index of each first LEB volume.

Signed-off-by: Gaël PORTAY <gael.portay@gmail.com>