refactored Piq to operate on memory mapped npy files