Unlocking Positional Encoding And Self-Attention In Deep Learning