Added methods for floats, doubles, shorts, chars and bytes to Memory