Generalized JoinMap as a test

#13 JoinMap is generalized.
PartMap and JoinMap generalized

#13 JoinMap and PartMap working and tested.