Fix mappers for large files, added spinlock

Hash map collision problem still needs to be fixed