small template library which may be used to map binary structures into tuples