Nikkei edges up in thin, directionless trading