Added spec and class file for new class 'WordMapWeight'.