If $\lfloor x\rfloor$ is the greatest integer less than or equal to $x$, then find the value of \[\displaystyle\sum_{N=1}^{1024} \lfloor \log_{2}N\rfloor.\]

Let's think step by step and output the final answer within \boxed{}.
user